package com.ruoyi.cs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cs.mapper.TBackpackOperateMapper;
import com.ruoyi.cs.domain.TBackpackOperate;
import com.ruoyi.cs.service.ITBackpackOperateService;

/**
 * 后台背包操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
@Service
public class TBackpackOperateServiceImpl implements ITBackpackOperateService 
{
    @Autowired
    private TBackpackOperateMapper tBackpackOperateMapper;

    /**
     * 查询后台背包操作记录
     * 
     * @param operateId 后台背包操作记录ID
     * @return 后台背包操作记录
     */
    @Override
    public TBackpackOperate selectTBackpackOperateById(String operateId)
    {
        return tBackpackOperateMapper.selectTBackpackOperateById(operateId);
    }

    /**
     * 查询后台背包操作记录列表
     * 
     * @param tBackpackOperate 后台背包操作记录
     * @return 后台背包操作记录
     */
    @Override
    public List<TBackpackOperate> selectTBackpackOperateList(TBackpackOperate tBackpackOperate)
    {
        return tBackpackOperateMapper.selectTBackpackOperateList(tBackpackOperate);
    }

    /**
     * 新增后台背包操作记录
     * 
     * @param tBackpackOperate 后台背包操作记录
     * @return 结果
     */
    @Override
    public int insertTBackpackOperate(TBackpackOperate tBackpackOperate)
    {
        tBackpackOperate.setCreateTime(DateUtils.getNowDate());
        return tBackpackOperateMapper.insertTBackpackOperate(tBackpackOperate);
    }

    /**
     * 修改后台背包操作记录
     * 
     * @param tBackpackOperate 后台背包操作记录
     * @return 结果
     */
    @Override
    public int updateTBackpackOperate(TBackpackOperate tBackpackOperate)
    {
        tBackpackOperate.setUpdateTime(DateUtils.getNowDate());
        return tBackpackOperateMapper.updateTBackpackOperate(tBackpackOperate);
    }

    /**
     * 批量删除后台背包操作记录
     * 
     * @param operateIds 需要删除的后台背包操作记录ID
     * @return 结果
     */
    @Override
    public int deleteTBackpackOperateByIds(String[] operateIds)
    {
        return tBackpackOperateMapper.deleteTBackpackOperateByIds(operateIds);
    }

    /**
     * 删除后台背包操作记录信息
     * 
     * @param operateId 后台背包操作记录ID
     * @return 结果
     */
    @Override
    public int deleteTBackpackOperateById(String operateId)
    {
        return tBackpackOperateMapper.deleteTBackpackOperateById(operateId);
    }
}
